<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String jsPath = basePath + "js";
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title><sitemesh:write property='title' /> - 双儿的博客</title>
<script type="text/javascript" src="/static/js/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap-3.0.3/bootstrap.min.js"></script>
<link href="static/themes/bootstrap-3.0.3/bootstrap.min.css" rel="stylesheet">
<sitemesh:write property='head' />
<style>
body {
	background-image: url("/static/themes/images/body-bg.jpg");
	background-repeat: repeat;
	background-position: top left;
	background-attachment: scroll;
}
#navigation {
	background: #f1f1f1; /* Show a solid color for older browsers */
	background: -moz-linear-gradient(#fafafa, #f1f1f1);
	background: -o-linear-gradient(#fafafa, #f1f1f1);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fafafa),
		to(#f1f1f1) ); /* older webkit syntax */
	background: -webkit-linear-gradient(#fafafa, #f1f1f1);
	border-top: 1px solid #fff;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 999;
}
#navigation-bottom {
	background-image: url("/static/themes/images/nav-bottom.png");
	height: 9px;
	width: 100%;
	margin-top: -20px;
	margin-bottom: 20px;
}
.posts {
	background-color: #fff;
	-moz-box-shadow: 0 4px 0 rgba(94, 94, 94, 0.1);
	-webkit-box-shadow: 0 4px 0 rgba(94, 94, 94, 0.1);
	box-shadow: 0 4px 0 rgba(94, 94, 94, 0.1);
	padding-top: 10px;
}
</style>
</head>
<body>
	<div id="navigation" class="navbar navbar-default" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="/">个人博客</a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li class="active"><a href="/">首页</a></li>
					<li><a href="/admin/post">新增</a></li>
					<li><a href="/about">关于</a></li>
					<li><a href="/contact">联系</a></li>
					<li class="dropdown"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown">其他 <b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><a href="/sitemap">站点导航</a></li>
							<li><a href="#">Another action</a></li>
							<li><a href="#">Something else here</a></li>
							<li class="divider"></li>
							<li class="dropdown-header">Nav header</li>
							<li><a href="#">Separated link</a></li>
							<li><a href="#">One more separated link</a></li>
						</ul></li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<c:if test="">
					</c:if>
					<c:choose>
						<c:when test="${null == sessionScope._USER }">
							<li><a href="/login">登录${sessionScope._USER.nickname }</a></li>
						</c:when>
						<c:otherwise>
							<li><a href="/">${sessionScope._USER.nickname }</a></li>
						</c:otherwise>
					</c:choose>
					<li class="active"><a href="/logout">退出</a></li>
				</ul>
			</div>
			<!--/.nav-collapse -->
		</div>
	</div>
	<div id="navigation-bottom"></div>
	
	<sitemesh:write property='body' />
</body>
</html>